<?php
session_start();
if(!isset($_SESSION['id'])){
    header('location:index.php');
}

print_r($_SESSION);
unset($_SESSION['register_date']);
print_r($_COOKIE);

?>
<h4>Secure page, Only logged in user can check this page..</h4>
<a href="logout.php">Logout</a>
